public class User {
    private String username;
    private String password;
    private String email;
    private String sex;
    private int age;

    //无参数
    public User(){

    }

    //带全部参数的构造
    public User(String username,String password,String email,String sex,int age){
        this.username=username;
        this.password=password;
        this.email=email;
        this.sex=sex;
        this.age=age;
    }

    public String getUsername(){
        return username;
    }

    public void setUsername(String name){
        this.username=name;
    }


    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String toString() {
        return "User{username = " + username + ", password = " + password + ", email = " + email + ", sex = " + sex + ", age = " + age + "}";
    }
}
